<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:c="http://java.sun.com/jsp/jstl/core">

<ui:composition template="/restrito/template.xhtml">

<ui:define name="menu"><ui:include src="menu.xhtml" /></ui:define>

<ui:define name="corpo">
	<div class="container">
		<ui:include src="../mensagem.xhtml" />
		<h:form id="f">
			<h2>#{flash.consultarVagaMB.vaga.numeroCandidatos} candidato(s) a vaga #{flash.consultarVagaMB.vaga.identificaoVaga}</h2>
			<p>Clique sobre os nomes dos candidatos para vizualização de suas informações.</p>
			<div class="accordion" id="accordion2">
			<ui:repeat var="p" value="#{flash.consultarVagaMB.lsCandidatosVaga}" varStatus="i">
				<div class="accordion-group">
					<div class="accordion-heading">
						<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapse#{i.index}"> #{p.nome} (#{p.email})</a>
					</div>
					<div id="collapse#{i.index}" class="accordion-body collapse">
						<div class="accordion-inner">
						Residencial: #{p.telefoneResidencial} Celular: #{p.telefoneCelular} Comercial #{p.telefoneResidencial} (prefere ser contactado no #{p.qualTelefoneContactarFormatado})
						</div>
					</div>
				</div>
			</ui:repeat>
			</div>
			<div class="form-actions">
		  	    <h:button outcome="consultarvaga" value="Voltar" styleClass="btn btn-large btn-primary"/>
			</div>
		</h:form>
	</div>
</ui:define>
</ui:composition>
</html>
